package com.itmuch.contentcenter.configuration;

import feign.Logger;
import feign.Logger.Level;
import org.springframework.context.annotation.Bean;

/**
 * @author caiqian
 * @date 2021/5/8 8:18
 * feign的配置类
 * 这个类别加@Configuration , 否则父子扫描,重复扫描,会将此配置变成共享配置, 那就需要把此类迁移至 @ComponentSacn之外的包才行
 */
public class UserCenterFeignConfiguration {

  @Bean
  public Logger.Level level(){
    //让feign打印所有请求的细节
    return Level.FULL;
  }
}
